#include "ini.h"

using namespace std;

int main(int argc, char **argv)
{
    if(!argv[1]){
        cout << "Usage: ini-reader config.ini" << endl;
        exit(0);
    }

    try
    {
    //sample usage:
    ini config(argv[1]);
    string addr = "database:players_table";
    cout << addr << " = " << config.lookup(addr) << endl;
    }
    catch(exception& e)
    {
        cerr << e.what();
    }
    return 0;
}
